package com.haruhi.bot.job;

import com.haruhi.bot.mapper.postgresql.PixPictureMapper;
import com.haruhi.bot.service.PixPictureService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class JobManage {

    @Autowired
    private PixPictureService service;

    @Autowired
    private CheckBotStatusJob checkBotStatusJob;

    public void startAll(){
        log.info("开始启动所有job...");

        PutPixJob.start(service);
        DeleteRepeatPictureJob.start(service);
        checkBotStatusJob.start();
        log.info("启动完成");

    }
}
